package com.bestcem.xm.award.service.dto.awardaward;

import com.bestcem.xm.award.enums.AwardStatusEnum;
import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 更新奖励参数
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/1 11:26
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
public class UpdateAwardStatusDTO {

    /**
     * 企业id
     */
    @NotBlank(message = "企业标识为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识异常！")
    private String orgId;

    /**
     * 奖励id
     */
    @NotBlank(message = "奖励标识为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励标识异常！")
    private String awardId;

    /**
     * 奖励状态 {@link AwardStatusEnum}
     */
    @NotNull(message = "奖励状态不能为空！")
    private Integer status;

    /**
     * 项目title
     */
    private String projectTitle;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 奖励之前状态
     */
    private Integer oldStatus;



}
